import request from '@/utils/request'

// 查询项目列表
export function listProject(query) {
  return request({
    url: '/project/list',
    method: 'get',
    params: query
  })
}

// 保存项目
export function saveProject(info) {
  return request({
    url: '/project',
    method: info.projectId?'put':'post',
    data: info
  })
}

// 删除项目
export function deleteProject(ids) {
  return request({
    url: '/project/'+ids,
    method: 'delete'
  })
}

// 项目详情
export function detailProject(projectId) {
  return request({
    url: '/project/'+projectId,
    method: 'get'
  })
}

// 校验是否已有内容
export function checkContentState(params){
  return request({
    url:'/docCont/checkCont',
    method:'get',
    params:params
  })
}